import { NextResponse } from "next/server";
import { getFoodTruck } from "@/app/actions";

export const GET = async (req, { params }) => {
  const { id } = params;
  const data = await getFoodTruck(id);

  return NextResponse.json({
    success: true,
    message: "",
    data,
  });
};
